nextSibling

abstract fun nextSibling(): Optional<Node>

Returns an Optional that contains the next node in the document tree if such a node exists, otherwise returns an empty Optional.

Throws

when this node is closed